﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="cpgl_Add.aspx.cs" Inherits="rxt_cpgl_Add" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../css/style1.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <table>
            <tr>
                <td class="style2">标题</td>
                <td class="style1"><asp:TextBox ID="txtTitle" runat="server" MaxLength="9" 
                        Width="176px" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ErrorMessage="非空" ControlToValidate="txtTitle"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style2">链接</td>
                <td class="style1"><asp:TextBox ID="txtUrl" runat="server" Width="553px" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                        ErrorMessage="非空" Display="Dynamic" ControlToValidate="txtUrl"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revUrl" runat="server" 
                        ControlToValidate="txtUrl" ErrorMessage="链接格式错误" 
                        ValidationExpression="http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&amp;=]*)?"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:Button ID="btnSave" runat="server" Text="添加" onclick="btnSave_Click" /></td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
